raar.vectorimage
Class RAGAgentTrace

java.lang.Object
  extended byraar.vectorimage.RAGVectorObject
      extended byraar.vectorimage.RAGAgentTrace
All Implemented Interfaces:
java.io.Serializable

public class RAGAgentTrace
extends RAGVectorObject

A vector image representation of an agent trace.

See Also:
Serialized Form

Constructor Summary
RAGAgentTrace(RAAgent src)
          Construct this object.
 
Method Summary
 void addTrace(java.awt.geom.Point2D.Double trace)
          Add a trace.
 java.awt.Color getColor()
          Return the trace colour.
 java.awt.Shape getShape()
          Return the shape.
 java.util.Vector getTraces()
          Return the traces.
 boolean isFilled()
          This is a path; draw only the path and not the filling area.
 boolean isPerceivable()
          We cannot see traces with the agent's sensors.
static void setMaximumTraceLength(long l)
          Set the maximum trace length.
 void untrace()
          Delete all traces.
 
Methods inherited from class raar.vectorimage.RAGVectorObject
createGVectorObject, getObject, getOpacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAGAgentTrace

public RAGAgentTrace(RAAgent src)
Construct this object.

Method Detail

getColor

public java.awt.Color getColor()
Return the trace colour.

Overrides:
getColor in class RAGVectorObject

addTrace

public void addTrace(java.awt.geom.Point2D.Double trace)
Add a trace.


getTraces

public java.util.Vector getTraces()
Return the traces.


untrace

public void untrace()
Delete all traces.


setMaximumTraceLength

public static void setMaximumTraceLength(long l)
Set the maximum trace length.


getShape

public java.awt.Shape getShape()
Return the shape.

Overrides:
getShape in class RAGVectorObject

isFilled

public boolean isFilled()
This is a path; draw only the path and not the filling area.

Overrides:
isFilled in class RAGVectorObject

isPerceivable

public boolean isPerceivable()
We cannot see traces with the agent's sensors.

Overrides:
isPerceivable in class RAGVectorObject